home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-03-21 | 1.3 KB | 40 lines |
- # Makefile for GNU make with GNU-C
-
- # Comment one or both of the following lines to select code/data model
- BASEREL = -fbaserel
- SMALLCODE = -msmall-code
-
- EXEC = ADtoHT
-
- CC = gcc $(BASEREL) $(SMALLCODE)
- CWARN = -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align
- CFLAGS = $(CWARN) -fomit-frame-pointer -O2
- CPPFLAGS = -nostdinc -I. -I- -I/gnu/MyLib -I/gnu/os-include -I/gnu/include
-
- LIBTYPE := GNUC
-
- ifdef BASEREL
- LIBTYPE := $(LIBTYPE)b
- endif
- ifdef SMALLCODE
- LIBTYPE := $(LIBTYPE)s
- endif
-
- OBJS = main.o File.o Includes.o ProcessDir.o AVL.o Autodocs.o AdditionalDocs.o FormatNode.o
-
- all: $(EXEC)
-
- $(EXEC): $(OBJS)
- $(CC) -Xlinker -s -nostdlib $(LIBTYPE)/MyStartup.o $(OBJS) $(LIBTYPE)/libMyLib.a -lamiga -o $@
-
- # Dependencies
-
- main.o: main.c main.h AVL.h File.h Includes.h ProcessDir.h Autodocs.h AdditionalDocs.h
- ProcessDir.o: ProcessDir.c main.h AVL.h ProcessDir.h
- File.o: File.c main.h AVL.h File.h
- Autodocs.o: Autodocs.c Includes.h main.h AVL.h File.h Autodocs.h FormatNode.h AdditionalDocs.h
- AVL.o: AVL.c AVL.h
- Includes.o: Includes.c main.h AVL.h File.h ProcessDir.h Includes.h Autodocs.h FormatNode.h AdditionalDocs.h
- AdditionalDocs.o: AdditionalDocs.c main.h AVL.h File.h AdditionalDocs.h Includes.h Autodocs.h FormatNode.h
- FormatNode.o: FormatNode.c main.h AVL.h File.h FormatNode.h
-